<!-- 底部菜单 -->
<template>
  <div>
    <div style="height:60px;width:100%;"></div>
    <van-tabbar v-if="$route.path!='/login'" class="fixedWidth">
      <van-tabbar-item icon="wap-home" :class="{blue:$route.path=='/index'}" @click.native="to('/index')">首页</van-tabbar-item>
      <van-tabbar-item icon="contact" :class="{blue:$route.path=='/userIndex'}" @click.native="to('/userIndex')">用户中心</van-tabbar-item>
    </van-tabbar>
  </div>
</template>
<style scoped>
</style>
<script>
export default {
  data () {
    return {

    }
  },
  methods: {
    //跳转路由
    to (path) {
      this.$router.push(path)
    }
  }
}
</script>